package org.stratusdb.funsql.execute;

public abstract class BinaryOperator extends AbstractOperator{
	private static final long serialVersionUID = 5124485828031834434L;
	protected AbstractOperator leftChild;
	protected AbstractOperator rightChild;
	
	//constructors
	public BinaryOperator(AbstractOperator leftChild, AbstractOperator rightChild){
		if(leftChild==null||rightChild==null) System.out.println("one of the childs of a binary op had a null child");
		this.leftChild = leftChild;
		this.rightChild = rightChild;
	}

	//getters and setters
	public AbstractOperator getLeftChild() {
		return leftChild;
	}

	public void setLeftChild(AbstractOperator leftChild) {
		this.leftChild = leftChild;
	}

	public AbstractOperator getRightChild() {
		return rightChild;
	}

	public void setRightChild(AbstractOperator rightChild) {
		this.rightChild = rightChild;
	}
}
